package com.ztesoft.ossup.report.web;

import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.ztesoft.ossup.report.dao.ReportRepository;
import com.ztesoft.ossup.report.domain.Report;

@RestController
public class ReportOutputController {
	Logger _logger = Logger.getLogger(ReportOutputController.class);
	
	@Autowired
    ReportRepository reportRepository;
	
	@RequestMapping("/report/{code}")
	public Report findReportByCode(@RequestParam("code") String code) {
		_logger.debug("code:" + code);
		//return reportRepository.findOneByCode(code);
		return null;
	}
	
	
}
